package com.studyroom.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Answer {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long questionId;
    private Long userId;
    @TableField(exist = false)
    private Long questionUserId;
    @TableField(exist = false)
    private String questionTitle;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String icon;
    private String content;
    private LocalDateTime created;
}
